package com.hdwe.tools.pm.domain.bo;

import com.hdwe.tools.pm.domain.PmTag;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 标签业务对象 pm_tag
 *
 * @author s
 * @date 2024-12-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = PmTag.class, reverseConvertGenerate = false)
public class PmTagBo extends BaseEntity {

    /**
     * 主键
     */
    private Long id;

    /**
     * 标签类型
     */
    private String tagType;

    /**
     * 标签名
     */
    @NotBlank(message = "标签名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String tagName;

    /**
     * 样式
     */
    private String classStyle;

    /**
     * 状态（enable正常 disable停用）
     */
    @NotBlank(message = "状态（enable正常 disable停用）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 备注
     */
    private String remark;


}
